<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="./jquery-3.4.1.js"></script>
  </head>
  <body>
    <h1>测试jQuery</h1>
    <div id="div1"></div>
    <script>
      $(document).ready(() => {
        console.log('jQuery has been ready');
        var oHtml1 = $(`
          <p>我在测试jQuery的动态创建元素的功能</p>
          <p>这里有两个元素</p>
          <span>span</span>
          <h3>h3</h3>
        `);

        $('#div1').append(oHtml1);
      });
    </script>
  </body>
</html>
